import 'package:boss/ui/page/forgetPassword/provider/forget_password_provider.dart';
import 'package:boss/ui/widget/loginRegistForget/lrf_btn.dart';
import 'package:boss/ui/widget/loginRegistForget/lrf_title.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'forget_password_form.dart';

class ForgetPasswordBrwoser extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: SingleChildScrollView(
        child: Column(
          children: <Widget>[
            LRFTitle('找回密码'),
            ForgetPasswordForm(),
            LRFBtn(
              title: '确 认',
              onTap: () {
                var forgetPasswordProvider =
                    Provider.of<ForgetPasswordProvider>(
                  context,
                  listen: false,
                );
                forgetPasswordProvider.forgetPassword(context);
              },
            ),
          ],
        ),
      ),
    );
  }
}
